import greenfoot.*;  // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)

/**
 * Boton para comenzar el juego.
 * 
 * @author Asael Hernández García 
 * @version (a version number or a date)
 */
public class Play extends Boton
{
    /**
     * Act - do whatever the Play wants to do. This method is called whenever
     * the 'Act' or 'Run' button gets pressed in the environment.
     */
    private PistaAutomovil pista;
    
    public Play()
    {
        pista = new PistaAutomovil("L1.png", 100, 10, 800);
    }
    
    public void act() 
    {
        if(Greenfoot.mouseClicked(this))
            Greenfoot.setWorld(pista);
    }    
    
    
}
